package sivan.annotation;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import sivan.domain.Person;
import sivan.service.PersonService;
import sivan.service.UserService;

/**
 * Created by sivan on 2019/3/24.
 */
public class Main {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(BaseConfig.class);
        PersonService personService = context.getBean("personService", PersonService.class);
        Person person = new Person(11,"yqq",22,"15579878119");
        personService.save(person);
    }
}
